while(1):
    q = input('问：')
    if q[-1]=='?' or q[-1]=='？' or q[-1]=='吗':
        a = q.replace('吗','').replace('?','').replace('？','')+'！'    
    elif  q[-1]=='!'or q[-1]=='！':
        a = q
    else :
        a = q + '！'
    print('答：%s'%a)
